<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Authentic Avenue Admin</title>

<link rel="shortcut icon" href="<?php echo $this->webroot; ?>img/favicon.ico" type="image/x-icon" />
<!--[if lt IE 7]>
<?php  echo $html->script(array("DD_belatedPNG.js")); ?>
<script type="text/javascript">

  DD_belatedPNG.fix('img, div, a.popupClose');
</script>
<![endif]-->
<script type="text/javascript">

var baseurl = "<?php echo Configure::read('base_url');?>";
</script>
	<?php
		echo $this->Html->css('admin_style');
		//echo $this->Html->css('style');
		echo $scripts_for_layout;
	?>

<?php  echo $html->script(array("jquery.min.js","popup.js")); ?>
	<script type="text/javascript">
	 jQuery.noConflict();	
	</script>
</head>
<body>
<div class="popupWrapper">
	<a href="javascript:void(0);" class="popupClose">&nbsp;</a>
	<div class="popupTop">&nbsp;</div>
          <div class="popupContent">
              <div id="loader" style="margin-left:50px"><img src="<?php echo Configure::read('base_url');?>img/loading.gif" alt="loading..." />loading...</div>
    	<div class="popupScroller">
        	<div class="popContentWrapper">
            	<div class="allHolder">
                	<div id="popupItems" class="popupItems">

                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="popupBottom">&nbsp;</div>
</div>
<!-- top lines for style -->
<div id="top_green">&nbsp;</div>
<div id="top_dark"></div>
<div id="wrapper">
  <div id="header">
    <!-- logo - editable via logo.png -->
    <div id="logo"></div>
    <div id="user_links">
        <?php
         if($session->read('Auth.User.id')==null){
        ?>
	<a href="javascript:void(0);" controller="users" action="register"
            title="register"
            onclick='showPop(this)'>Registration</a>

<?php }  ?>
        <?php
   if($session->read('Auth.User.id')!=null){
       ?>
        Logged in as <a href="javascript:void(0);" ><?php
       echo $session->read('Auth.User.first_name');
       echo ' ';
       echo $session->read('Auth.User.last_name');

   }

   ?></a>&nbsp;| <a href="<?php echo Configure::read('base_url');?>" title="<?php echo Configure::read('base_url');?>" target="_blank">View Website</a>&nbsp;<?php
         if($session->read('Auth.User.id')!=null){
        ?>| <a href="<?php echo Configure::read('base_url');?>users/logout">Logout</a> <?php }else{ ?>| <a href="<?php echo Configure::read('base_url');?>users/login">Login</a><?php } ?></div>

  </div>

  <!-- edit navigation items here -->
  <div id="nav">
    <ul>
      <li class="current"><a href="<?php echo Configure::read('base_url');?>backstage">Dashboard</a></li>
      <li><a href="<?php echo Configure::read('base_url');?>backstage/cmspages">Manage Content</a></li>
      <li><a href="<?php echo Configure::read('base_url');?>backstage/users/manageuser">Manage Users</a></li>
      <li><a href="<?php echo Configure::read('base_url');?>backstage">Manage Site</a></li>
    </ul>
  </div>
  <div id="content">

	<?php echo $content_for_layout; ?>
	 <div id="footer">
    <!-- edit footer items here -->
    <div id="copyright">Copyright &copy; <?php echo date("Y");?> AuthenticAvenue.com All Right Reserved</div>
    <div id="footer_links"><?php
         if($session->read('Auth.User.id')!=null){
        ?> Go back to <a href="<?php echo Configure::read('base_url');?>backstage">Dashboard</a>&nbsp;| <?php } ?><a href="#">Help</a>&nbsp;<?php
         if($session->read('Auth.User.id')!=null){
        ?>| <a href="<?php echo Configure::read('base_url');?>users/logout">Logout</a> <?php } ?></div>
  </div>
</div>
  <?php echo $this->element('sql_dump'); ?>
</body>
</html>